package hcn.protocol.base.user.service;

import ctd.util.annotation.DicMapping;
import ctd.util.xml.jaxb.DateAdapter;
import ctd.util.xml.jaxb.DateTimeAdapter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by chuangye9527 on 16/7/20.
 * 预约挂号平台注册用户 同步到 app用户信息
 */
@XmlRootElement(name = "userRequest")
public class UserRegisterBean4Service implements Serializable {
    private String mobile;//手机号
    private String password;//姓名
    private String username;//
    private String idcard;//证件号码
    private String cardtype;//证件类型 双方字典一致
    private String sexcode;//性别 双方字典一致
    private Date birthday;//生日(数据格式：yyyy-MM-dd)
    @DicMapping(dic = "nationalityForReg&hcn-base-dictionary-nationality")
    private String nationality;//国籍(1：中国大陆；2：中国港澳；3：中国台湾；9：海外同胞）

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getCardtype() {
        return cardtype;
    }

    public void setCardtype(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getSexcode() {
        return sexcode;
    }

    public void setSexcode(String sexcode) {
        this.sexcode = sexcode;
    }

    @XmlJavaTypeAdapter(DateAdapter.class)
    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }
}
